package com.lmt.ymcc.feignclient;

import com.lmt.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Description:
 * @Author: Amazing
 * @Date: 2022/8/14 15:46
 * @Version: 1.0
 */
@FeignClient(value = "service-media", fallbackFactory = MediaFeignFallbackFactory.class)
public interface MediaFeignClient {

    @RequestMapping(value = "/mediaFile/getMediaData/{courseId}",method = RequestMethod.GET)
    JSONResult getMediaData(@PathVariable("courseId")Long courseId);

}
